package com.dtease.agent.core.exception;

/**
* @description 业务异常类
* @author chentl
* @class BizException
* @package com.dtease.agent.exception
* @since 2025/5/7 15:27
*/
public class BizException extends RuntimeException {
    private int code;
    private String message;

    public BizException() {
    }

    public BizException(String message) {
        super(message);
        this.message = message;
    }

    public BizException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
        this.message = message;
    }

    public BizException(int code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public BizException(String message, Throwable cause) {
        super(message, cause);
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
